﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp.Study.Generic.NetAttributes
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
    public class NetAttribute : Attribute
    {
        private int _id;
        private string? _name;
        public int Id
        {
            get { return _id; }
        }
        public string? Name
        {
            get { return _name; }
        }
        public NetAttribute(int id,string name)
        {
            _id = id;
            _name = name;
        }
    }
}
